<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DiscountOrder extends Model
{
    //优惠套餐订单记录
    protected $table = 'discount_order';

    public function getCoveAttribute($value)
    {
        return getDomain().'/'.$value;
    }

    public function user_counpon()
    {
        return $this->hasOne(UserCoupon::class,'discount_order_id','id');
    }
}
